<?php

namespace App\model;

use Illuminate\Database\Eloquent\Model;

/**
 * App\model\CustomerSign
 *
 * @property int $id
 * @property string|null $name
 * @property \Illuminate\Support\Carbon $created_at
 * @property \Illuminate\Support\Carbon $updated_at
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\CustomerSign newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\CustomerSign newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\CustomerSign query()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\CustomerSign whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\CustomerSign whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\CustomerSign whereName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\CustomerSign whereUpdatedAt($value)
 * @mixin \Eloquent
 * @property string|null $bg_color
 * @property string|null $text_color
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\CustomerSign whereBgColor($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\model\CustomerSign whereTextColor($value)
 */
class CustomerSign extends Model
{
    protected $table='customer_sign';
    public static function getSelectOptions()
    {
        $options = \DB::table('customer_sign')->select('id','name as text')->get();
        $selectOption = [];
        foreach ($options as $option){
            $selectOption[$option->id] = $option->text;
        }
        return $selectOption;
    }
}
